package app.netant.finishbook.heiyange;

import cn.lily.com.enviroment.Enviroment;
import app.netant.book.base.BaseDetail;
import app.netant.book.base.BaseEntity;
import app.netant.book.base.BasePage;
import app.netant.book.base.BaseRoot;

public class HeiyangeRoot extends BaseRoot {
	
	public HeiyangeRoot(){
		this.homeUrl = "http://www.heiyange.com/quanbu/";
		this.pageUrl = "http://www.heiyange.com/quanbu/";
		this.tableKey = "heiyange";
	}

	@Override
	public String buildUrl(int pageIdx) {
		return homeUrl;
	}

	@Override
	public BasePage buildPage(String url) {
		return new HeiyangePage(url);
	}

	@Override
	public BaseDetail buildDetail(String url) {
		return new HeiyangeDetail(url);
	}

	@Override
	public BaseEntity buildEntity() {
		return new HeiyangeEntity();
	}
	
	@Override
	public void afterEntity(BaseEntity entity) {
		
	}
	
	public static void main(String[] args) {
		
		Enviroment.createEnv();
		Enviroment.getEnv().getLogBean().beginLog();
		
		HeiyangeRoot root = new HeiyangeRoot();
		//root.analyse(1);
		root.excepCycle();
	}


	
}
